package com.demo.steammanagement.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.demo.steammanagement.model.entity.RedeemCodeInfo;
import com.demo.steammanagement.model.vo.RedeemCodeInfoVO;
import org.apache.ibatis.annotations.Update;

public interface RedeemCodeInfoMapper extends BaseMapper<RedeemCodeInfo> {

  @Update("update redeem_code_info set user_role = #{userRole},validity=#{validity} where id = #{id} and status='NotRedeemed'")
  void updateRedeemCode(RedeemCodeInfo redeemCodeInfo);
}
